<?php

namespace api\business\validate;

use think\Validate;

class LicensePlateValidate extends Validate
{
    protected $rule = [
        'company' => 'require',
        'cid' => 'require|number',
        'corporation' => 'require',
        'registered_capital' => 'require|number',
        'currency' => 'require|number',
        'regtime' => 'require|require',
        'phone' => 'require',
        'area' => 'require|number',
        'price' => 'number',
        'manager' => 'number',
    ];

    protected $message = [
        'company.require' => '公司名称不能为空',
        'cid.require' => '行业类别不能为空',
        'cid.number' => '行业类别错误',
        'corporation.require' => '法人不能为空',
        'registered_capital.require' => '注册资金不能为空',
        'registered_capital.number' => '注册资金错误',
        'currency.require' => '货币单位不能为空',
        'currency.number' => '货币单位错误',
        'regtime.require' => '成立日期不能为空',
        'regtime.number' => '成立日期错误',
        'phone.require' => '联系电话不能为空',
        'area.require' => '地区不能为空',
        'area.number' => '地区错误',
        'price.number' => '价格错误',
        'manager.number' => '负责人不能为空',
    ];

}